<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org" xmlns:ng="http://angularjs.org" >
<head>
    <meta charset="UTF-8">
    <title>首页</title>
    <link th:href="@{webjars/bootstrap/css/bootstrap.css}" rel="stylesheet"/>
</head>

<body>
<div ng-app="index" ng-controller="indexController">
    <table class="table">
        <thead>
            <tr><td ng-click="test()">序号</td><td>姓名</td><td>年龄</td><td>性别</td></tr>
        </thead>
        <tbody>
            <tr><td>1</td><td></td><td></td><td></td></tr>
        </tbody>
    </table>
</div>
</body>
<script type="application/javascript" th:src="@{webjars/jquery/jquery.js}"></script>
<script type="application/javascript" th:src="@{webjars/angularjs/angular.js}"></script>
<script type="application/javascript" th:src="@{webjars/bootstrap/js/bootstrap.js}"></script>
<script>
    var module = angular.module('index',[]);
    module.controller('indexController',function($scope){
        $scope.test = function() {
            console.log('加载成功');
        };
    });

</script>

</html>